<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2 th:text="${msg}"></h2>
<div>[[${msg}]]</div>
<form th:action="@{/doindex}" method="post">
   username:<input type="text" name="uname"/><br/>
   userpwd:<input type="text" name="upwd"/><br/>
   <input type="submit" value="提交"/>
</form>
</body>
</html>